function fn1() {
  return 1;
}

function fn2() {
  return {
    a: 1,
    b: true,
  };
}

type Type1 = ReturnType<typeof fn1>;

type Type2 = ReturnType<typeof fn2>;
